﻿<link rel="stylesheet" href="${ctx}/common/common.css"><%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<div class="rel">
<c:if test="${not empty materialList }">
   <c:forEach items="${materialList}" var="obj">
   <c:if test="${not empty obj && obj.classify=='rawClassify' }">
     <ul>
         <li class="rel-name">名称：<b>${obj.materialName}</b></li>
         <li>规格：<b>${obj.specifications}</b></li>
         <li>单位：<b>${obj.unit}</b></li>
         <li>生产批次：<b>${obj.product_batch}</b></li>
         <li>生产日期：<b>${obj.product_date}</b></li>
         <li>生产工艺：
         	<b> 
         		<a href="${ctx}/public/trace/recipientTrace?recipientId=${obj.rdId}" class="source-btn">查看加工工艺</a>
         	</b>
         </li>
         <li class="source-p">交易凭证：
                     <label class="source-img">
                     	<c:if test="${not empty obj.tradeAttList }">
                     	<c:forEach items="${obj.tradeAttList}" var="att">
                     			 <a href=""><img src="${ctx}${att.att_img}" /></a>
                     	</c:forEach>
                        </c:if>
                     </label>
         </li>
         <li>入库时间：<b>${obj.inTime}</b></li>
         <li>入库仓库：<b>${obj.wName}</b></li>
     </ul>
    <div class="procurement">
         <div  class="mui-control-content  mui-active">
             <ul class="mui-table-view">
             <!--  mui-active -->
                 <li class="mui-table-view-cell mui-collapse">
                     <a class="mui-navigate-right" href="#">
                         <p class="mui-table-title">检验信息</p>
                     </a>
                     <div class="mui-collapse-content">
                         <div class="checkout">
                         	                        
                         
                             <ul class="checkout-ul">
                                 <li>检验机构：<b>${obj.insp_org}</b></li>
                                 <li>检验人员：<b>${obj.personName}</b></li>
                                 <li>检验日期：<b>${obj.reportCreateTime}</b></li>
                                 <li>检验项目：<b></b></li>
                                 <li class="infor_position">
                                 	<c:if test="${obj.insp_result!=1}">
                                 		<img src="${ctx}/common/publicPlatform/img/bhg.png">
                                 	</c:if>
                                 	<c:if test="${obj.insp_result==1}">
                                 		<img src="${ctx}/common/publicPlatform/img/hg.png">
                                 	</c:if>
                                    
                                 </li>
                             </ul>
                            <div class="checkout-report">
                                  <ul class="checkout-report-ul">
                                  <c:forEach items="${obj.reportDetailList}" var="detail">  
                                      <li>
                                          <span class="report-name li">${detail.name}</span>
                                          <span class="li">标准值：${detail.min_value}-${detail.max_value}${detail.unit}<br>检验值：${detail.insp_value }${detail.unit}</span>
                                          <span class="li report-hg">结果：${detail.is_up eq '1'?'合格':'不合格'}</span>
                                      </li>
                                  </c:forEach>
                                  </ul>   
                                 <div class="procurement-report-img">
                                 	 <c:forEach items="${obj.inspReporAttrList}" var="attr">  
                                     <a href=""><img src="${ctx}${att.turl}" /> </a>
                                     </c:forEach>
                                     
                                     
                                  </div>
                            </div>
                        	 
                        </div>
                        
                     </div>
                 </li>
                 
                 <li class="mui-table-view-cell mui-collapse">
                     <a class="mui-navigate-right" href="#">
                         <p class="mui-table-title">产地/合格证书</p>
                     </a>
                     <div class="mui-collapse-content">
                         <div class="checkout">
                             <ul>
                                 <li>供应商：<b>*****</b></li>
                                 <li>采购日期：<b>${obj.pdTime}</b></li>
                                 <li>采购数量：<b>${obj.pdQuantity} </b></li>
                             </ul>
                            <div class="checkout-report"> 
                                  <div class="procurement-report-img">
                                 	 <c:if test="${not empty obj.certificateOriginAttList }">
				                     	<c:forEach items="${obj.certificateOriginAttList}" var="att">
				                     			<a href=""><img src="${ctx}${att.att_img}" /></a>
				                     	</c:forEach>
				                     </c:if>
                     
                                  </div>
                            </div>
                        </div>
                        
                     </div>
                 </li>

             </ul>
         </div>
         
    </div>
   	</c:if>
    </c:forEach>
   
   </c:if>
</div>
                         

